//
//  CommentTableViewCell.h
//  Cycling
//
//  Created by 迟国强 on 2023/4/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class RouteCommentModel;
@class RouteDetailModel;

typedef void(^CommentRouteBlock)(RouteDetailModel *model);
typedef void(^CommentListBlock)(RouteCommentModel *model);
typedef void(^showMoreBlock)(RouteDetailModel *model);

@interface CommentTableViewCell : UITableViewCell<UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UILabel *commentL;
@property (nonatomic, copy) CommentRouteBlock block;
@property (nonatomic, strong) NSArray *models;
@property (nonatomic, strong) RouteDetailModel *detailModel;
@property (nonatomic, copy) CommentListBlock listBlock;
@property (nonatomic, copy) showMoreBlock moreBlock;
@property (weak, nonatomic) IBOutlet UILabel *noDataL;

@property (nonatomic, assign) NSInteger firstCommentNum;

@end

NS_ASSUME_NONNULL_END
